/* 导入基地址 */
import instance from '../../utils/axios'
/* 用户登录模块 */
const validateLogon =({mobile,code})=>{
    return instance({
        url:'/v1_0/authorizations',
        method:'post',
        data:{
            mobile,
            code
        }
    })
}
export {validateLogon}
/* 个人信息 */
const userinformation =()=>{
    return instance({
        url:'/v1_0/user/profile',
        method:'get',
    })
}
export {userinformation}
/* 编辑信息 */
const edituserinfo =(data)=>{
    return instance({
        url:'/v1_0/user/profile',
        method:'PATCH',
        data,
    })
}
export {edituserinfo}